package com.mms.entity.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by dangz on 2017-5-22.
 */
public class TreeNode {
    private String id;
    private String pid;
    private String text;
    private Boolean checked;
    private Map<String, String[]> attributes;
    private List<TreeNode> children;
    private String state;

    public TreeNode() {
        this.checked = Boolean.FALSE;
        this.children = new ArrayList();
        this.state = "open";
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return this.pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getText() {
        return this.text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Boolean getChecked() {
        return this.checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Map<String, String[]> getAttributes() {
        return this.attributes;
    }

    public void setAttributes(Map<String, String[]> attributes) {
        this.attributes = attributes;
    }

    public List<TreeNode> getChildren() {
        return this.children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }

    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
